package com.itheima.controller;

import com.itheima.pojo.Result;
import com.itheima.service.OrderService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/orderSuccess")
public class OrderController {
    @Reference
    private OrderService orderService;

    @RequestMapping("/findDetailById.do")
    public Result findDetailById(@RequestParam("id")String id){
        return orderService.findDetailById(id);
    }

}
